package com.lcx.movie.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.stereotype.Component;

import java.sql.Timestamp;
@Component
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
/**
 * 用户评分实体
 */
@TableName(value = "user_rating")
public class UserRating {
  @TableId(value = "rating_id",type = IdType.INPUT)
  private long ratingId;
  @TableField(value = "movie_id")
  private long movieId;
  @TableField(value = "user_id")
  private long userId;
  @TableField(value = "score")
  private float score;
  @TableField("rating_time")
  private String ratingTime;

  @TableField("movie_cn_name")
  private String movieCnName;
  @TableField("movie_picture")
  private String moviePicture;
  @TableField("user_name")
  private String userName;

}
